<form id="import-contacts-form" enctype="multipart/form-data" method="post" onsubmit="return false;">
	<table class="table table-bordered contact-import">
		<tbody>
			<tr><td width=100>所属分组</td><td><select name="group_id"><option value="0">选择分组</option><volist name="group" id="vo"><option value="{$vo.group_id}">{$vo.group_name}</option></volist></select>
			</td></tr>
			<tr><td>导入信息</td><td></td></tr>

			<tr><td>选择文件</td><td><input type="text" disabled style="margin-top:5px" id='input-import'/>
			<span style="overflow:hidden;position:relative;"><input type="file" name="file" style="opacity:0;filter:alpha(opacity=0);position:absolute;width:100px" id="import" onchange="$('#input-import').val($(this).val());"/><a class="btn btn-success">TXT文件导入</a></span></tr>
			<tr><td colspan="2"><input type="submit" class="btn btn-info" value="导入"></td></tr>
		</tbody>
	</table>
</form>
<script>
	//提交表单
	$.getScript("__PUBLIC__/js/jquery/jquery.form.js",function(){
		$("#import-contacts-form").submit(function(){
			$(this).ajaxSubmit({
				url:'__APP__/Contacts/txtImport',
				dataType:'json',
				success:function(json){
					$.remind("提示",json.info);
				}
			});
		});
	});
</script>